home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20021006-20030409
/
000184_fdc@columbia.edu_Tue Dec 17 13:49:27 EST 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
72 lines
Article: 13966 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Control characters with minput
Date: 17 Dec 2002 13:46:00 -0500
Organization: Columbia University
Lines: 55
Message-ID: <atnrd8$8o9$1@watsol.cc.columbia.edu>
References: <6b84683a.0212171034.6c28e6fe@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1040150774 8565 128.59.39.139 (17 Dec 2002 18:46:14 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 17 Dec 2002 18:46:14 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13966
In article <6b84683a.0212171034.6c28e6fe@posting.google.com>,
EBH <ebh@burntmail.com> wrote:
: I recently upgraded from kermit version 6.0.192 to kermit version
: 8.0.206, and it seems to me that minput functions differently. I have
: a kermit script that waits for an ENQ from the remote computer nad
: sends a transaction is response to the ENQ.
:
: I wrote the following code to search for ENQ or EOT and move to the
: correct part of the script accordingly:
:
: minput 60 \005 \004
: switch \v(minput) {
: :0, echo {*** No response received, redialing ***}, -
: goto RESTART, break
: :1, echo {Transmitting \%c - \%k:\%m}, -
: goto ENQ, break
: :2, echo {*** EOT received, redialing ***}, -
: goto RESTART, break
: :default, echo {Invalid resonse: \v(input), sending NAK}, -
: increment num'enq, output \021, goto START
: }
:
: This worked fine in kermit 6.0.192, but in kermit 8.0.206 even though
: I get a Ctrl-E and the command "echo \fcode(\v(input))" prints 5, but
: the switch always executes the code for 0. And when I issue "echo
: \v(minput)" it returns 0.
:
: So, the question is as follows: Did this cahnge in kermit 7 or 8. And
: if it did, how can use minput to search for multiple control
: characters?
:
I guess it's a syntax quirk as the language has evolved over the years.
Try it this way (in C-Kermit 8.0):
minput 60 "\5" "\4"
switch \v(minput) {
:0, echo "*** No response received - redialing ***"
goto RESTART
break
:1, echo "Transmitting \%c - \%k:\%m"
goto ENQ
break
:2, echo "*** EOT received - redialing ***"
goto RESTART
break
:default
echo "Invalid resonse [\v(input)] - sending NAK"
increment num'enq
output \021
goto START
}
(Yes, the old way should still work but apparently it doesn't).
- Frank